package com.doria.common.ad_enum;

/**
 * 响应码枚举
 */
public enum CodeEnum {

    SUCCESS("成功",20000),
    ERROR("失败",50000),

    BADE_PARAM("参数错误",40000),

    PERMISSIONS_ERROR("权限不足",40300),

    INVALID_TOKEN("无效token",40100),
    SMS_CODE_ERROR("短信验证码错误",50001),
    SMS_CODE_NOT_EXP("短信验证码未过期",50002)
    ;

    public String getInfo() {
        return info;
    }

    private final String info;
    private final Integer code;

    public Integer getCode(){
        return code;
    }

    CodeEnum(String info, Integer code) {
        this.info = info;
        this.code = code;
    }


}
